/**
 * @description User-Service parameters
 */
export interface IUserOptions {
  _id?: string
  username: string
  password: string
  nickname: string
  roles: string[]
  department: string
  position: string
}

export interface TableOptions {
  _id?: string
  name: string
  b: string
  c: string
}

export interface WorkflowTemplateOptions {
  _id?: string
  name: string
  formData: any[]
  flowData: {
    nodesData: any[]
    linesData: any[]
  }
}

export interface WorkflowDataOptions {
  _id?: string
  submitter: {
    username: string
    nickname: string
  }
  formData: {
    [index: string]: any
  }
  flowData: any[]
  status: string // '未处理' | '** 处理中' | '通过' | '否决'
}
